#ifndef MYLABEL1_H
#define MYLABEL1_H

#include <QWidget>
#include <QLabel>

class mylabel1 : public QLabel
{
    Q_OBJECT
public:
    explicit mylabel1(QWidget *parent = nullptr);

signals:

public slots:

protected:
    //重写鼠标案件处理函数
    void mousePressEvent(QMouseEvent *ev);
    //重写鼠标移动的处理函数
    void mouseMoveEvent(QMouseEvent *ev);
    //重写鼠标释放的处理函数
    void mouseReleaseEvent(QMouseEvent *ev);
    //重写事件分发器
    bool event(QEvent *e);
    //重写对象过滤器eventFilter
    bool eventFilter(QObject *watched, QEvent *event);
};

#endif // MYLABEL1_H
